// ? 全局不动配置项 只做导出不做修改
// import { matchIp } from "@/utils/str";
import { RouterPath } from "@/enums/routerPath";

export const API_URL: string = "https://www.apifox.cn/apidoc/shared-39e2e56f-f585-4bc3-8534-1a047df14fc2/api-60818141";

//API代理模式
export const IS_API_PROXY = true; //matchIp(location.hostname);

// * 登录页地址（默认）
export const LOGIN_URL: string = "/login";
export const HOME_URL: string = "/iot/home";
export const DEVICE_URL: string = RouterPath.deviceList;

// * 接口前缀
export const API_PREFIX = "/api";

//系统ID
export const HEADER_KEY_SYSTEM: string = "systemid";
export const SYSTEM_ID: string = "sansan";
export const HEADER_KEY_TOKEN: string = "Authentication";

// * 默认主题颜色
export const DEFAULT_PRIMARY: string = "#5E7CE0";

// * 路由白名单地址，不需要权限就可以访问（必须是本地存在的路由 staticRouter.ts）
export const ROUTER_WHITE_LIST: string[] = ["/500"];

// * 高德地图 key
export const MAP_KEY: string = "e116b880cda98748f16b465aef14c9cd";

// * 密码 key
export const PASSWORD_KEY: string = "ssiot_aes_len_16";

// * 体验账户
export const DEMOID = "ssiot-default-demo";

// 开放路由默认前缀
export const PUBLICPATH = "public";
//每个应用后台服务端口（线上环境使用hostname+端口）
export const SERVERS: Server = {
	scada: { name: "scada", port: 30001, apiPrefix: "/scada" + (IS_API_PROXY ? "/api" : "") }
};
